package cn.itcast.mapper;

import cn.itcast.pojo.CheckGroup;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author: peterChen
 * @date: 2019/8/13 16:54
 * @description: TODO
 * @version: 1.0
 */
public interface CheckGroupMapper {
    public void add(CheckGroup checkGroup);

    public void setCheckGroupAndCheckItem(List<Map> list);

    public Page selecByCondition(@Param("queryString") String queryString);

    public CheckGroup findCheckgroupById(@Param("id") Integer id);

    public List<Integer> findCheckItemIdsByCheckGroupId(@Param("id") Integer id);

    public void deleteAssociation(@Param("id") Integer id);

    public void edit(CheckGroup checkGroup);

    public void delete(@Param("id") Integer id);

    public List<CheckGroup> findAll();

}
